package com.levy.contronller.cLesson;

import java.io.IOException;
import java.util.Scanner;

public class Sushu {

    public static void main(String[] args) throws IOException {

        long l = 3;
        int i = 2;

        double sqrt = Math.sqrt(l);
        for (; i <= sqrt; i++) {
            if (l % i == 0) {
                break;
            }
        }
        if (sqrt < i) {
            System.out.println(l + " is prime");
        } else {
            System.out.println(l + " is not prime");
        }


    }
}
